home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung 2 / Power-Programmierung CD 2 (Tewi)(1994).iso / gnu / djgpp / contrib / dvx / inc / x11 / xaw / mailboxp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-07-15  |  2.6 KB  |  77 lines

  1. /*
  2.  * $XConsortium: MailboxP.h,v 1.16 89/05/11 01:05:56 kit Exp $
  3.  *
  4.  * Copyright 1988 Massachusetts Institute of Technology
  5.  *
  6.  * Permission to use, copy, modify, and distribute this software and its
  7.  * documentation for any purpose and without fee is hereby granted, provided
  8.  * that the above copyright notice appear in all copies and that both that
  9.  * copyright notice and this permission notice appear in supporting
  10.  * documentation, and that the name of M.I.T. not be used in advertising or
  11.  * publicity pertaining to distribution of the software without specific,
  12.  * written prior permission.  M.I.T. makes no representations about the
  13.  * suitability of this software for any purpose.  It is provided "as is"
  14.  * without express or implied warranty.
  15.  *
  16.  * Author:  Jim Fulton, MIT X Consortium
  17.  */
  18.  
  19. #ifndef _XawMailboxP_h
  20. #define _XawMailboxP_h
  21.  
  22. #include <X11/Xaw/Mailbox.h>
  23.  
  24. #ifdef SYSV
  25. #define MAILBOX_DIRECTORY "/usr/mail"
  26. #else
  27. #define MAILBOX_DIRECTORY "/usr/spool/mail"
  28. #endif
  29.  
  30. typedef struct _MailboxPart {            /* new fields for mailbox widget */ /* Added tag. POHC 91/04/08 */
  31.     /* resources */
  32.     int update;                /* seconds between updates */
  33.     Pixel foreground_pixel;        /* color index of normal state fg */
  34.     String filename;            /* filename to watch */
  35.     String check_command;        /* command to exec for mail check */
  36.     Boolean reverseVideo;        /* do reverse video? */
  37.     Boolean flipit;            /* do flip of full pixmap */
  38.     int volume;                /* bell volume */
  39.     Boolean once_only;            /* ring bell only once on new mail */
  40.     /* local state */
  41.     GC gc;                /* normal GC to use */
  42.     long last_size;            /* size in bytes of mailboxname */
  43.     XtIntervalId interval_id;        /* time between checks */
  44.     Boolean flag_up;            /* is the flag up? */
  45.     struct _mbimage {
  46.     Pixmap bitmap, mask;        /* depth 1, describing shape */
  47.     Pixmap pixmap;            /* full depth pixmap */
  48.     int width, height;        /* geometry of pixmaps */
  49.     } full, empty;
  50. #ifdef SHAPE
  51.     Boolean shapeit;            /* do shape extension */
  52.     struct {
  53.     Pixmap mask;
  54.     int x, y;
  55.     } shape_cache;            /* last set of info */
  56. #endif
  57. } MailboxPart;
  58.  
  59. typedef struct _MailboxRec {        /* full instance record */
  60.     CorePart core;
  61.     MailboxPart mailbox;
  62. } MailboxRec;
  63.  
  64.  
  65. typedef struct _MailboxClassPart {            /* new fields for mailbox class */ /* Added tag. POHC 91/04/08 */
  66.     int dummy;                /* stupid C compiler */
  67. } MailboxClassPart;
  68.  
  69. typedef struct _MailboxClassRec {    /* full class record declaration */
  70.     CoreClassPart core_class;
  71.     MailboxClassPart mailbox_class;
  72. } MailboxClassRec;
  73.  
  74. extern MailboxClassRec mailboxClassRec;     /* class pointer */
  75.  
  76. #endif /* _XawMailboxP_h */
  77.